<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<style type="text/css">
	.serviceGoodsDescription,.serviceGoodsName{
	    width:100px;
		text-overflow:ellipsis;
		white-space:nowrap;
		overflow:hidden;
	}
</style>
<div class="table-responsive">
<table class="cntable table table-bordered dataTable table-goodsService ">
	<thead>
		<tr>
			<th style="width:50px">序号</th>
			<th data-sortable="true" data-field="serviceTypeName" style="width:100px">服务分类</th>
			<th style="width:100px">服务名称</th>
			<th style="width:100px">商品描述</th>
			<th style="width:100px">服务地区</th>
			<th data-sortable="true" data-field="storePhone" style="width:100px">联系电话</th>
			<th data-sortable="true" data-field="serviceGoodsName" style="width:100px">商品名称</th>
			<th data-sortable="true" data-field="goodsMaketPrice" style="width:100px">活动价格</th>
		</tr>
	</thead>
	<tbody>
	 <c:forEach var="goodsService" items="${goodsServices}" varStatus="status">
		<tr data-id="${goodsService.id}">
		 <td>${status.index+1}</td> 
				<td>${goodsService.serviceTypeName}</td>
				<td>${goodsService.serviceName}</td>
				<td><div class="serviceGoodsDescription" title="${goodsService.serviceGoodsDescription}">
				           ${goodsService.serviceGoodsDescription}</div></td>
				<td>${goodsService.serviceProvince}${goodsService.serviceCity}${goodsService.serviceCounty}</td>
				<td>${goodsService.goodStore.storePhone}</td>
                <td><div class="serviceGoodsName" title="${goodsService.serviceGoodsName}">
				           ${goodsService.serviceGoodsName}</div></td>
				<td>${goodsService.goodsMaketPrice}<t:provider packageName="ser" enumClassName="GoodsCurrencyState"
						value="${goodsService.goodsMaketCurrency}" /></td> 				
			</tr>
		</c:forEach> 
	</tbody>
	<tfoot>
		<tr>
			<th class="pager-th absolute-pos">
				<%@ include file="/WEB-INF/views/shared/master/pager.jsp"%>
			</th>
		</tr>
	</tfoot>
</table>
</div>